package org.alex.samples.test;

import java.util.List;
import org.alex.samples.dao.ITestDao;
import org.alex.samples.model.ExamTest;
import org.alex.samples.service.ManageTestService;
import org.alex.samples.web.StudentController;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({ "file:WebContent/WEB-INF/viewspace-servlet.xml" })
public class examtext {

	@Autowired
	private ITestDao testDao;
	
	@Autowired
	private ManageTestService manageTestService;
	
	@Autowired
	StudentController studentController;
//	@Test
//	public void testfindAllTests() throws Exception {
//		List<ExamTest> test = this.testDao.findAllTests();
//	}
//
//	@Test
//	public void testTestById() throws Exception {
//		int id = 1;
//		this.testDao.getTestById(id);
//	}
//
//	@Test
//	public void testCreateTest() throws Exception {
//		ExamTest test = new ExamTest();
//		this.testDao.createTest(test);
//	}
//
//	@Test
//	public void TestEaitTest() throws Exception {
//		User test = new User(28, "asd", "a", "b", "c", "d", 2, 3, "a");
//		this.testDao.editTest(test);
//	}
//
/*	@Test
	public void getTestListBySubject() throws Exception {
		studentController.getTestListBySubject(2,"student10");
	}*/
//	
//	@Test
//	public void findAllTestType() throws Exception{
//		this.testDao.findAllTestType();
//	}
	
}